<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>创建一个 EPUB</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2>生成目录</h2>

  <p>In order for Sigil to generate a table of contents for you, you must have already identified the chapter names. See the previous tutorial if you have not done this already.</p>
  <p>为了使 Sigil 能够为您生成目录，您必须已经标识了章节名称。如果尚未执行此操作，请参见上一教程。</p>

  <p>Once you have marked all your chapter headings you can click the Generate Table Of Contents button <img alt="generate-toc_22px" src="../Images/generate-toc_22px.png"/> or use the menu item <span class="menuitem">Tools→Table Of Contents→Generate Table Of Contents</span> to open a new dialog:</p>
  <p>标记所有章节标题后，可以单击“生成目录”按钮 <img alt="generate-toc_22px" src="../Images/generate-toc_22px.png"/> 或使用菜单项 <span class="menuitem">工具→目录→生成目录</span> 以打开一个新对话框：</p>

  <div class="image">
    <img alt="tutorial-generate-chapter" src="../Images/tutorial-generate-chapter.png"/>
  </div>

  <p>The dialog allows you to mark which headings to include or not include in your Table of Contents.</p>
  <p>该对话框使您可以标记要包含或不包含在目录中的标题。</p>

  <p>Click <span class="buttonbox">OK</span> when you are finished.</p>
  <p>完成后，点击<span class="buttonbox">确定</span>。</p>

  <p>The Table of Contents window will be updated to show your current TOC – which includes the headings you selected:</p>
  <p>目录窗口将更新以显示您当前的目录，其中包括您选择的标题：</p>

  <div class="image">
    <img alt="tutorial-generated-toc" src="../Images/tutorial-generated-toc.png"/>
  </div>

  <p>If you click on an entry in the Table of Contents window you will jump to its location in the book.</p>
  <p>如果单击“目录”窗口中的条目，您将跳至其在书中的位置。</p>

  <p>You should re-generate the TOC any time you change your headings.</p>
  <p>更改标题时，您应该重新生成目录。</p>

  <p>Save <img alt="button-save" src="../Images/button-save.png"/> your book if you haven’t already.</p>
  <p>如果还没有，请保存 <img alt="button-save" src="../Images/button-save.png"/>。</p>

  <div class="tip">
    <p class="tiptext">See the <a href="../Text/table_of_contents.html">Table of Contents</a> chapter for more details.</p>
    <p class="tiptext">有关更多详细信息，请参见 <a href="../Text/table_of_contents.html">目录</a> 一章。</p>
  </div>
</body>
</html>